package cn.xopencode.securityservice.enums.suggest;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 建议级别枚举
 */
public enum SuggestLevelEnum implements IntArrayValuable {

    WORKSHOP(1, "车间级"),
    COMPANY(2, "公司级");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(SuggestLevelEnum::getLevel).toArray();

    /**
     *  级别
     */
    private final Integer level;
    /**
     * 描述
     */
    private final String name;

    SuggestLevelEnum(Integer status, String name) {
        this.level = status;
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
